package com.its.en.controller;

import com.its.en.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Author: master
 * @Version: 1.0
 */
@Slf4j
@Controller
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("export")
    public void export(HttpServletRequest request,HttpServletResponse response){
        try {
            testService.export(request,response);
        }catch (Exception e){
            log.error("下载错误：",e);
        }
    }
}
